/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
}

/* 轮播图样式 */
.banner-section {
  margin-bottom: 20px;
}

.swiper-container {
  width: 100%;
  height: 200px;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 菜单导航样式 */
.menu-section {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 20px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.menu-item {
  text-align: center;
  text-decoration: none;
  color: #333;
}

.menu-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.menu-item span {
  font-size: 12px;
}

/* 商品分类样式 */
.category-section {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 20px;
}

.category-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.category-list {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
  display: none;
}

.category-item {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
  text-decoration: none;
  color: #333;
  margin-right: 15px;
}

.category-item img {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  margin-bottom: 5px;
}

.category-item span {
  font-size: 12px;
}

/* 商品网格样式 */
.hot-goods-section,
.recommend-goods-section {
  background-color: #fff;
  padding: 15px;
  margin-bottom: 20px;
}

.hot-goods-section h2,
.recommend-goods-section h2 {
  font-size: 18px;
  margin-bottom: 15px;
}

.goods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.goods-item {
  text-decoration: none;
  color: #333;
}

.goods-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.goods-item h3 {
  font-size: 14px;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.goods-item .price {
  color: #ff6b6b;
  font-size: 16px;
  font-weight: bold;
}

/* 响应式布局 */
@media (min-width: 768px) {
  .goods-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .swiper-container {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .goods-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .swiper-container {
    height: 400px;
  }
} 